﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
//using System.ComponentModel.DataAnnotations;
using System.Data.Linq;
using System.Data.Linq.Mapping;


namespace Kis2012.Models
{
    [Table(Name="t$ourusers")]
    public class User 
    {
        private int _UserId;
        [Column(Storage = "_UserId", Name = "f$nrec", IsPrimaryKey = true, IsDbGenerated = true, AutoSync = AutoSync.OnInsert, DbType = "Int NOT NULL IDENTITY")]
        public int UserId {
            get { return this._UserId; }
            //set { _UserId = value; } 
        }

        [Column(Name="f$user")]
        public string LoginName { get; set; }
        [Column(Name="f$pass")]
        public string LoginPass { get; set; }
        [Column(Name="f$realname")]
        public string UserName { get; set; }
        [Column(Name="f$fio")]
        public string UserFullName { get; set; }
        [Column(Name = "f$email")]
        public string UserEmailAddress { get; set; }
        [Column(Name = "f$cpodr")]
        public string UserUnit { get; set; }
        [Column(Name = "f$isadmin")]
        public int IsAdmin { get; set; }
        [Column(Name = "f$isactive")]
        public int IsActive { get; set; }
        [Column(Name = "f$userdept")]
        public int UserDept { get; set; }
    }

}